const pager = {
	params: {
		pageIndex: 1,
		pageSize: 10,
	},
	pageTotal: 0,
	pageSizeArr: [10, 20, 30, 40]
};
const path = ['仓库管理', '入库管理', {
	label: '退料入库列表',
	name: 'returnMaterialWarehousing'
}, '列表详情'];
const tabFormInline = [{
		label: '退料入库单号',
		value: '',
	},
	{
		label: '单据状态',
		value: '',
	},
];
const filterOption = {
	items: [
		{
			label: "入库单类型",
			type: "text",
			data: [],
			placeholder: "请选择",
			value: undefined,
			key: "status"
		},
		{
			label: "供应商",
			type: "text",
			data: [],
			placeholder: "请选择",
			value: undefined,
			key: "inWarehouseId"
		},
		{
			label: "入库仓库",
			type: "dropdown",
			data: undefined,
			placeholder: "",
			value: undefined,
			key: "customerInformation"
		},
		{
			label: "操作人",
			type: "text",
			data: undefined,
			placeholder: "请选择",
			value: undefined,
			key: "createTime"
		},
		{
			label: "创建人",
			type: "text",
			data: [],
			placeholder: "请选择",
			value: undefined,
			key: "type"
		},
		{
			label: "备注",
			type: "text",
			data: undefined,
			placeholder: "",
			value: undefined,
			key: "logisticsCompany"
		},
	],
	labelType:'text'
};

const stepOption = {
	activeStep: 0,
	step: [{
			title: '创建入库单',
			description: ''
		},
		{
			title: '已入库',
			description: ''
		},
	]
};
const editDialogFormData = {
	shippingMethod: '0', //配送方式(0:快递,1:自提；)
	shipper: undefined,
	originChannel: undefined,
	salesman: undefined,
	recipientName: undefined,
	recipientPhone: undefined,
	messagePhone: undefined,
	addressType: undefined,
	location: undefined,
	detailedAddress: undefined,
};
let Model = {
	data() {
		return {
			Model: {
				queryData: undefined,
				path,
				pager,
				shouldSaleGoodsInfoVos: [],
				actualSaleGoodsInfoVos:[],
				uploadFile: {
					name:undefined
				},
				whWarehouseId:undefined,
				fileUrl:'',
				fileName:'',
				activeTab: '1',
				tabFormInline,
				editDialogFlag: false,
				editDialogNewAddress: false,
				dialogFormVisible:false,
				editDialogFormData,
				exportTableSelectList:undefined,
				defaultEditDialogFormData: editDialogFormData,
				exportBarcode:undefined,
				exportBarcodeFlag:false,
				filterOption,
				stepOption,
				saleLogList: [],
				detailTableFrom: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab1TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab2TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
			}
		}
	}
}
export default Model;
